<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src='./事件冒泡和事件捕获.js'></script>
</head>

<body>
  <ul id="selector">
    <li>AA</li>
    <li>BB</li>
    <li>CC</li>
    <li>DD</li>
    <div>EE</div>
  </ul>
  <script>
    addEventListener('#selector', 'click', function (e) {
      console.log(this.innerHTML)
    }, 'li')
  </script>
</body>

</html>